package com.bgs.travelapp.scenic.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@ToString
@Table(name = "scenic_entity")
public class ScenicEntity {
    //id
    @Id
    private Integer id;
    //景区名称
    private String scenicName;
    //景区简介
    private String briefIntroduction;
    //景区地址
    private String scenicAddress;
    //景区开放时间
    private String openingTime;
    //景区官方电话
    private String officialPhone;
    //景区公告信息
    private String announcementInformation;
    //地图竖标
    private String lng;
    //地图横标
    private String lat;
    //景区详细介绍
    private String introduce;
    //景区优待政策信息
    private String preferentialTreatment;
    //景区门票价格
    private Double price;
    //逻辑删除 0代表未删除 1代表已删除
    private Integer delFlag;
    //景区图片id
    private String imageId;
    //景区市id
    private Integer cityId;
    //景区省id
    private Integer provinceId;
    //创建时间
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    //用户收藏景区数
    private Integer collection;


}
